/* eslint-disable no-unused-vars */
// eslint-disable-next-line no-shadow-restricted-names
var config = (function(global, undefined) {
	var config = {}
	/**
	 * @description 版本号
	 */
	config.version = '1.0.0'

	/**
	 * @description api请求基础路径
	 */
	config.baseUrl = {
		dev: '',
		pro: ''
	}

	/**
	 * @description 项目部署路径，根路径'/'
	 */
	config.publicPath = '/admin'

	/**
	 * @description 打包文件夹名称
	 */
	config.outputDir = config.publicPath.replace(/\//g, '')

	/**
	 * @description 项目基本信息
	 */
	config.baseDate = {
		copyright: '2018 - 2021',
		name: '鞍钢集团公司',
		address: '地址信息77号',
		tel: '0412-6736865',
		ICP: '辽ICP备2021008534号-1',
		licence: '',
		mallName: '鞍钢采购商城',
		operatingUnit: '德邻智联（鞍山）有限公司'
	}
	/**
	 * @description 首页商品楼层信息
	 */
	config.floorList = [
		/*办公用品*/
		{
			name: '动力传动',
			desc: '放心·安心·省心',
			id: '51e06720d7b411eb820a0242ac110002',
			on: 0,
			list: [{
					name: 'DCY/DLY减速机',
					id: '51e06802d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '轴承',
					id: '51e073d5d7b411eb820a0242ac110002',
					floor: '2'
				},
				{
					name: '联轴器',
					id: '51e07290d7b411eb820a0242ac110002',
					floor: '2'
				},
				{
					name: '标准滚子链条',
					id: '51e083ccd7b411eb820a0242ac110002',
					floor: '3'
				}
			]
		},
		{
			name: '仪器仪表',
			desc: '放心·安心·省心',
			id: '51debc73d7b411eb820a0242ac110002',
			on: 0,
			list: [{
					name: '实惠型数字万用表',
					id: '51dec751d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '温度变送器',
					id: '51df06b1d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '回路电阻测试仪',
					id: '51df5c4dd7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '双金属温度计',
					id: '51df9143d7b411eb820a0242ac110002',
					floor: '3'
				}
			]
		},
		{
			name: '电气',
			desc: '放心·安心·省心',
			id: '51e3716dd7b411eb820a0242ac110002',
			on: 0,
			list: [{
					name: '万能式断路器',
					id: '51e3af17d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '电流互感器',
					id: '51e37f23d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '交流接触器及附件',
					id: '51e3a27ad7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '其他继电器',
					id: '51e3ecdfd7b411eb820a0242ac110002',
					floor: '2'
				}
			]
		},
		{
			name: '工具',
			desc: '放心·安心·省心',
			id: '51e09605d7b411eb820a0242ac110002',
			on: 0,
			list: [{
					name: '充电式工具',
					id: '51e09674d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '组套工具包',
					id: '51e12979d7b411eb820a0242ac110002',
					floor: '3'
				},
				{
					name: '其它气动工具',
					id: '51e08de6d7b411eb820a0242ac110002',
					floor: '3'
				}
			]
		},
		{
			name: '电脑、办公',
			desc: '放心·安心·省心',
			id: 'da02285354a511ebace0fa163ecbc11e',
			on: 0,
			list: [

				{
					name: '电脑组件',
					id: 'e286d0b854a511ebace0fa163ecbc11e',
					floor: '2'
				},
				{
					name: '办公耗材',
					id: 'e28715cb54a511ebace0fa163ecbc11e',
					floor: '2'
				},
				{
					name: '办公文具',
					id: 'e5eccb4354a511ebace0fa163ecbc11e',
					floor: '3'
				},
				{
					name: '办公设备',
					id: 'e286d2a654a511ebace0fa163ecbc11e',
					floor: '2'
				}
			]
		}
	]

	config.whiteList = [
		'mall', 'detail', 'search', 'service-support', 'notice-list', 'notice-details',
		'platform-introduction', 'register', 'protocol-details', 'kyHome', 'newSearch','gfSearch','pgSearch',
		'task','register','newRegister'
	]
	/**
	 * @description 默认打开的首页的路由name值，默认为home
	 */
	config.homeName = '/'
	/*
	 * @description 内外与外网资源加载跟地址
	 * */
	config.DNS = {
		// 内外地址
		intranet: '10.151.31.51:9001',
		// 外网地址
		outernet: [
			'59.44.153.111:9001',
			'agshop.delinzl.cn',
			'10.0.9.14:9998',
			'10.0.9.14:9999',
			'60.28.145.226:19999',
			'localhost:8088',
			'localhost:8080'
		]
	}
	/**
	 * @description 路由处理的方式，0:前端处理;1:后端处理;
	 */
	config.routerType = 0

	/**
	 * @description 主题
	 */
	config.theme = 'default'

	/**
	 * @description 主题列表
	 */
	config.themeList = [{
			key: '',
			value: '科技蓝'
		},
		{
			key: 'green',
			value: '清新绿'
		}
	]

	/**
	 * @description 字号列表
	 */
	config.sizeList = [{
			key: '100',
			value: '正常'
		},
		{
			key: '110',
			value: '较大'
		},
		{
			key: '120',
			value: '超大'
		}
	]

	/**
	 * @description 顶部菜单
	 */
	config.topbar = false

	/**
	 * @description 侧边菜单
	 */
	config.sidebar = true

	/**
	 * @description 标签栏
	 */
	config.tagbar = true

	/**
	 * @description token在Cookie中存储的天数，默认1天select
	 */
	config.cookieExpires = 1

	/**
	 * @description 是否使用国际化，默认为false
	 *              如果不使用，则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
	 *              用来在菜单中显示文字
	 */
	config.useI18n = false

	/**
	 * @description 需要加载的插件
	 */
	config.plugin = {
		errorInfo: true
	}
	
	global.config = config
	return config
}(typeof window !== 'undefined' ? window : this))
